package com.imagination.applet.domain.aiimage.repository;

import com.imagination.applet.domain.aiimage.model.AIImage;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AIImageRepository extends JpaRepository<AIImage, Long> {

    List<AIImage> queryByChannelTypeAndDelFlag(String channelType,String delFlag);

    Page<AIImage> queryByChannelTypeAndTopicTypeAndDelFlag(String channelType, String topicType,String delFlag, Pageable pageable);
}
